FROM alpine:latest as certs
RUN apk --update add ca-certificates
RUN apk --no-cache add tzdata

FROM scratch
COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
COPY --from=certs /usr/share/zoneinfo /usr/share/zoneinfo
ARG ZONEINFO=/usr/share/zoneinfo
COPY chipper /
ENTRYPOINT ["/chipper"]

